import {WeaTools} from 'ecCom'

export const getMySubs = (params) => {
  return WeaTools.callApi('/api/hrm/base/getHrmResourceTree', 'GET', params);
}

export const getCalendarDatas = (params) => {
  return WeaTools.callApi('/api/portal/element/hdpanel/getListData', 'POST', params);
}

export const getAttentionData = (params) => {
  return WeaTools.callApi('/api/workplan/calendar/getAttentionData', 'POST', params);
}

export const addAttentionBrowser = (params) => {
  return  WeaTools.callApi('/api/workplan/calendar/updateAttention', 'POST', params);
}

export const getAllManagerData = (params) => {
  return  WeaTools.callApi('/api/portal/element/hdpanel/getAllManagerData', 'POST', params);
}

export const getCalendarBaseData = (params) => {
  return  WeaTools.callApi('/api/portal/element/hdpanel/getCalendarBaseData', 'POST', params);
}

